package com.yunshang.ysmall.service;

import java.util.List;
import java.util.Map;

import com.yunshang.ysmall.model.MbAddrInfo;
import com.yunshang.ysmall.model.MemberInfo;
import com.yunshang.ysmall.model.OrderInfo;
import com.yunshang.ysmall.model.OrderItemInfo;

public interface MemberService {
	void loginHandle(MemberInfo memberInfo);
	
	MemberInfo getMemberById(String memberId);
	
	boolean doPay(MemberInfo memberInfo);
	
	boolean addMbAddr(MbAddrInfo mbAddrInfo);
	
	boolean delMbAddr(Integer addrId);
	
	MbAddrInfo getAddrByMemberId(String memberId);
	MbAddrInfo getAddrById(Integer mbAddrId);
	
	boolean saveOrder(OrderInfo orderInfo);
	
	boolean updateOrder(OrderInfo orderInfo);
	
	boolean saveOrderItem(OrderItemInfo orderItemInfo);
	
	List<OrderInfo> getOrderListByParams(Map params);
	OrderInfo getOrderInfoById(String orderId);
	List<OrderItemInfo> getOrderItemListByOrderId(String orderId);
	Integer getListCountByParams(Map params);
	
	
}
